// debug  false 正式服务器   true  测试服务器
const DeBug = true

let Connect = {
  baseURL: '', //接口地址
  AuctionUrl: '', //产品接口
  selfShareUrl: '', //分享接口
  shareUrl: '',//分享二维码
}

if (DeBug) {
  // 本地联调
  Connect.baseURL = 'http://192.168.2.116:8100/api/'
  Connect.AuctionUrl = 'http://192.168.2.116:8100/api/'
  Connect.selfShareUrl = 'http://192.168.2.116:9527/#'
  Connect.shareUrl = 'http://192.168.2.116:9529/#/register?popCode='
} else {
  // 正式服务器
  Connect.baseURL = 'http://39.98.34.19:8100/api/'
  Connect.AuctionUrl = 'http://47.105.161.91:8101/api/'
  Connect.selfShareUrl = 'http://shop.jinanluke.com/#'
  Connect.shareUrl = 'http://shop.secjf.com/#/register?popCode='
}

let errorOut = () => {
  _this.$message.error('网络出错，请重新登录')
  _this.$router.push('/')
  return
}

export { Connect, errorOut }
